import { useMutation } from "react-query";
import useServer from "server";
import { SroProps } from "types";

export const useReorderKanban = () => {
  const client = useServer();
  return useMutation((params: Partial<SroProps>) => {
    return client("kanbans/reorder", {
      data: params,
      method: "POST",
    });
  });
};
